<?php declare(strict_types=1);


namespace PinWuYun\domain\dao;

use PinWuYun\domain\models\AreaModel;

/**
 * Created: by zhiJie
 * Date: 2021/7/1
 */
class AreaDao
{
    /**
     * 获取区域ID
     */
    public function getAreaId($province, $city, $area)
    {
        return AreaModel::query()->where([
            'province_name' => $province,
            'city_name' => $city,
            'area_name' => $area
        ])->value('area_id');
    }

}